package com.jie.practice;

import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 * 使用输出流写文件
 */
public class BufferedWriter_ {
    public static void main(String[] args) throws Exception{
        String filePath = "D:\\wujunjie.txt";
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(filePath));
        bufferedWriter.write("大家好，我叫吴俊杰，我爱学java，Java66");
        bufferedWriter.close();
        System.out.println("文件输出完成...");
    }
}
